import React from 'react';
import cx from 'classnames';
import styles from './common.less';

interface ViewProps extends React.HTMLAttributes<HTMLDivElement> {}

// const View = ({ className, ...props }: ViewProps) => {
//   return <div className={cx(styles.view, className)} {...props} />;
// };
const View = React.forwardRef(
  ({ className, ...props }: ViewProps, ref: any) => {
    return <div className={cx(styles.view, className)} ref={ref} {...props} />;
  },
);

View.defaultProps = {};

export { View };
